Usage
npm install @master/css.compiler
const compiler = new MasterCSSCompiler()
Options
{
cwd: process.cwd(),
config: 'master.css.{js,mjs,cjs}',
sources: [],
include: ['**/*.{html,js,jsx,ts,tsx,svelte,astro,vue,md,mdx,pug,php}'],
exclude: [
'**/node_modules/**',
'**/*.d.ts',
'**/*.test.*',
'node_modules',
'master.css.{js,ts,mjs,cjs}',
'dist',
'out',
'README.md'
],
fixedClasses: [],
ignoredClasses: []
}
Methods
init(): this
compile()
extract(name: string, content: string): string[]
insert(name: string, content: string): boolean
get sources(): string[]
checkSourcePath(name: string): boolean
readConfig(): Config
get configPath(): string
get resolvedConfigPath(): string
Properties
export default class MasterCSSCompiler {
css: MasterCSS
extractions = new Set<string>()
...
}